package qa.ui;

import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;

public class DepositCash extends JPanel {

	private JLabel lblDepositCash;
	private JButton btnBack;
	
	private String deposit;
	
	/**
	 * Create the panel.
	 */
	public DepositCash() {
		setLayout(null);
		
		lblDepositCash = new JLabel("Deposit Cash");
		lblDepositCash.setBounds(231, 43, 119, 16);
		add(lblDepositCash);
		
		btnBack = new JButton("Main Menu");
		btnBack.setBounds(327, 208, 117, 29);
		add(btnBack);

	}
	
	public String getDeposit(){
		deposit= lblDepositCash.getText();
		return deposit;
	}
	public JButton getbtnBack(){
		return btnBack;
	}
	
	
	public void addActionListener(ActionListener l) {
		btnBack.addActionListener(l);
}
	
	}
